package com.hgkj.cloud.base.dao;

import com.hgkj.cloud.base.domain.TenantPsychologicalCounseling;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface TenantPsychologicalCounselingMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TenantPsychologicalCounseling record);

    int insertSelective(TenantPsychologicalCounseling record);

    TenantPsychologicalCounseling selectByPrimaryKey(Long id);
    TenantPsychologicalCounseling getLastPsychologicalCounseling(Long id);
    int updateByPrimaryKeySelective(TenantPsychologicalCounseling record);

    int updateByPrimaryKey(TenantPsychologicalCounseling record);

    List<TenantPsychologicalCounseling> listPsychologicalCounselingByMap(Map<String, Object> map);

    long listPsychologicalCounselingCount(Map<String, Object> map);

    int delPsychologicalCounseling(Long id);

    List<Map<String, Object>> getPsychologicalCounselingStatistics(Map<String, Object> map);

    List<Map<String, Object>> statMonthConsulting(Map<String, Object> map);

    Map<String, Object> statMonthConsultingManner(Map<String, Object> map);

    Map<String, Object> statPsyCounselingGender(Map<String, Object> map);

    List<Map<String, Object>> getUserPsyCounseling(Map<String, Object> map);

    Long getUserPsyCounselingCount(Map<String, Object> map);

}